import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

// 注册全局组件
import registerCom from './components/global/register'
Vue.use(registerCom)

// 引入ElementUI组件库
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

//moment时间配置
import moment from 'moment'
moment.locale('zh-cn'); //设置语言 或 moment.lang('zh-cn');
Vue.prototype.$moment = moment;

// 引入百度地图
import BaiduMap from 'vue-baidu-map'
Vue.use(BaiduMap, {
  ak: 'ZiFXVKL0Y162drKTkKdhnqRuCfkz7C3b' //  在此输入你自己的百度地图ak
})

// 引入axios
import axios from 'axios'
Vue.prototype.axios = axios;

// 关闭生产提示
Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
